package com.avalon.erp.sys.addon.base.service;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.service.AbstractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MenuService extends AbstractService {
    @Override
    public String getServiceName() {
        return "base.menu";
    }

    private final Field label = Fields.createString("显示名称");
    private final Field serviceName = Fields.createString("模型名称");
    private final Field parentId = Fields.createMany2one("上级菜单", "base.menu");
    private final Field sequence = Fields.createInteger("序号");
    private final Field action = Fields.createMany2one("动作", "base.action.window.view");

    private final Field userId = Fields.createMany2one("用户", "base.user");

}
